<template>
  <div class="loginBox">
    <el-button type="primary" @click="loginIn">点击登录</el-button>
  </div>
</template>

<script>
export default {
  name: "CodeLogin",
  data() {
    return {};
  },
  methods: {
    loginIn() {
      sessionStorage.setItem("lastClickTime", new Date().getTime());
      sessionStorage.setItem('token',"token")
      this.$router.push({
        path: "/",
      });
    },
  },
};
</script>

<style lang="less" scoped>
.loginBox {
  width: 100%;
  height: 100%;
  background-color: #cde;
  .el-button {
      margin-top: 60px;
      margin-left: 120px;
  }
}
</style>
